﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Sisocana.Core.Models.ReporteModel>" %>

    <%= Html.HiddenFor(model => model.idPersona) %>
    <%= Html.HiddenFor(model => model.externalEntity) %>
    <%= Html.HiddenFor(model => model.searchWSId) %>
    <%= Html.HiddenFor(model => model.siteId) %>
    <fieldset>
        <legend>Source information</legend>
        <%= Html.FieldFor(model => model.nombre) %>
        <%= Html.FieldFor(model => model.apellido) %>
        <%= Html.FieldFor(model => model.email) %>
        <%= Html.FieldFor(model => model.telefono) %>            
    </fieldset>
    
    <fieldset>    
        <legend>Person's status</legend>
        <%= Html.Div("editor-label", Html.LabelFor(model => model.status)) %>
        <select id="Reporte.status" name="Reporte.status">
            <option selected="selected" value="U"> Unspecified </option>
            <option value="I"> I am seeking information </option>
            <option value="M"> The person is missing </option>
            <option value="A"> The person is alive </option>
            <option value="D"> The person is dead </option>
        </select>
        <%= Html.ValidationMessageFor(model => Model.status) %>

        <%= Html.Div("editor-label", Html.LabelFor(model => model.mensaje)) %>
        <%= Html.Div("editor-field", Html.TextAreaFor(model => model.mensaje)) %>
        <%= Html.ValidationMessageFor(model => Model.mensaje) %>   

        <div class="editor-label">
            <%: Html.LabelFor(model => model.fecha, "Last known location")%>
        </div>
        <%= Html.HiddenFor(model => model.CoordX) %>
        <%= Html.HiddenFor(model => model.CoordY) %>
        <div class="editor-field">
        <%= Html.GoogleMap("Reporte_CoordX", "Reporte_CoordY", false) %>
        </div>
    </fieldset>